/* 首页接口相关interface */

// 修改员工工号
export interface PostPersonnelNumSet {
  id?: number; // id
  name: string;
  type: number;
  value: string;
  sort?: number; // 排序
  status?: number;
}

export interface GetPersonnelinformation {
  pageIndex: number;
  pageSize: number;
}

export interface addPersonnel {
  /**
   * 证件类型
   */
  certificateType: string;
  /**
   * 性别：1男，2女
   *
   */
  gender: number;
  /**
   * 证件号码
   */
  idNumber: string;
  /**
   * 手机号码
   */
  mobile: string;
  name: string;
  /**
   * 工号
   */
  staffNo: string;
  /**
   * 状态： 1在职 2离职
   */
  status: number;
  /**
   * 直属上级 对应UserStaffId
   */
  supervisor: number;
  /**
   * 部门ID
   */
  userDepartmentId: number;
  /**
   * 岗位ID
   */
  userPositionId: number;
}

export interface Getsingleperson {
  id: number;
}

export interface DeletingPersonnel {
  id: number;
}

export interface Alterpersonnel {
  certificateType: string;
  gender: number;
  id: number;
  idNumber: string;
  mobile: string;
  name: string;
  staffNo: string;
  status: number;
  supervisor: number;
  userDepartmentId: number;
  userPositionId: number;
}

export interface postPositionData {
  name: string;
  roles?: Role[];
}

export interface Role {
  userRoleId: number;
}

export interface modPositionData {
  id: number;
  name: string;
  status: number;
  roles: Role[];
}

export interface GetsinglePosition {
  id: number;
}

export interface deletePosition {
  id: number;
}

// 获取单个角色
export interface gainsingleRole {
  id: number;
}

// 获取角色
export interface gainRole {
  name?: string;
}

// 添加角色
export interface AddRole {
  name: string;
}

// 获取单个部门
export interface GetsingleDepartment {
  id: number;
}

// 修改角色
export interface medicalRole {
  id: number;
  name?: string;
}

// 添加部门
export interface addDepartment {
  principal: number;
  pid: number;
  name: string;
}

// 删除部门
export interface delDepartment {
  id: number;
}

// 删除部门
export interface modDepartment {
  id: number;
  name: string;
  pid: number;
  principal: number;
}
